<# # It is recommended to test the script on a local machine for its purpose and effects. # ManageEngine Endpoint Central will not be responsible for any # damage/loss to the data/setup based on the behavior of the script. # Description: Script is designed To Lock out user logged into the machine # Configuration Type - COMPUTER # Refer: https://learn.microsoft.com/en-us/powershell/scripting/samples/changing-computer-state?view=powershell-7.5 #> # Lock the workstation using rundll32.exe Start-Process -FilePath "rundll32.exe" -ArgumentList "user32.dll,LockWorkStation"